<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h3>正在判断用户设备......</h3>

    <script>
        // 判断用户使用设备
        //js判断是否移动端
        function fIsMobile() {
            return /Android|iPhone|iPad|iPod|BlackBerry|webOS|Windows Phone|SymbianOS|IEMobile|Opera Mini/i.test(navigator.userAgent);
        }

        setTimeout(function() {
            var res = fIsMobile();
            if (res) {
                location.href = './mobile.html';
            } else {
                location.href = './pc.html';
            }
        }, 3000);
    </script>
</body>

</html>